<template>
  <div class="form-setting-panel form-select-setting">
    <!-- start 标题 -->
    <form-title-setting
      :field="field"
      :setting="setting"
      disabled
      @input="updateForDom"
    ></form-title-setting>
    <!-- end 标题 -->
    <form-describe-setting
      :field="field"
      @input="updateForDom"
    ></form-describe-setting>
    <!-- end 描述信息 -->

    <!-- start 校验 -->
    <div class="form-setting-group form-setting-item">
      <h4 class="form-item-title">{{$t('common.base.check')}}</h4>
      <div class="form-item-box">
        <!-- 必填 -->
        <form-required-setting :field="field" @input="update"></form-required-setting>
      </div>
    </div>
    <!-- end 校验 -->
  </div>
</template>

<script>
import _ from 'lodash';
import SettingMixin from '@src/component/form/mixin/setting';
import FormSelectMixin from '@src/component/form/mixin/form.select';
import { settingProps } from '@src/component/form/components/props';

export default {
  name: 'service-manage-authorization-setting',
  mixins: [SettingMixin, FormSelectMixin],
  props: {
    ...settingProps,
    /** 用于获取FormDesign实例 */
    getContext: Function
  },
  data(){
    return {
      index: this.field.options.length,
      batchModalShow: false,
      optionText: '', // 批量编辑文本
      errMessage: null
    }
  },
}
</script>